package org.itzixi.adapter;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

@Component("aliyun")
public class AliyunStorageAdapter implements StorageAdapter{
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public String uploadFile(String objectName, String fileName, boolean needUrl) throws Exception {
        return null;
    }

    @Override
    public String uploadFile(String fileName, InputStream is, boolean needUrl) throws Exception {
        return null;
    }

    @Override
    public String uploadFileAndReturnUrl(MultipartFile multipartFile, String objectName) throws Exception {
        return null;
    }

    @Override
    public void uploadFile(MultipartFile multipartFile,  String objectName) {

    }

    @Override
    public List<String> getAllBuckets() {
        return null;
    }

    @Override
    public InputStream download(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteObject(String bucket, String objectName) {

    }

    @Override
    public String getUrl(String objectName) {
        return null;
    }
}
